<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>OpenRF: MicrocontrollerAPI/RL78/microapi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenRF
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_8649882860f9b4ef386d3a3ed15b3d11.html">MicrocontrollerAPI</a></li><li class="navelem"><a class="el" href="dir_be1c67494bdf8120fd5725e75e1e48a1.html">RL78</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">microapi.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">**  microapi.h          Renesas RL78 R5F100EEANA                                    **</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">**************************************************************************************</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">** Written By:  Steve Montgomery                                                    **</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">**              Digital Six Laboratories LLC                                        **</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">** (c)2012,2013,2014 Digital Six Labs, All rights reserved                          **</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">**                                                                                  **</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">**************************************************************************************/</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// OpenRF™ Protocol Platform</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// Open Source - MIT License</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// Revision History</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// Revision     Date    Revisor     Description</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// ===================================================================================</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// ===================================================================================</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"></span><span class="preprocessor">#ifndef MICROAPI_DEFS_H</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#define MICROAPI_DEFS_H</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;TypeDefinitions.h&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;hardware_defs.h&quot;</span>                    <span class="comment">// requires compiler_defs.h</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;iodefine.h&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;iodefine_ext.h&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;interrupt_handlers.h&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;pfdl.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;pfdl_types.h&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="group___microcontroller.html#gacdad6d81b9a94402ce3979d531ae4f40">   41</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{ </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="group___microcontroller.html#ggacdad6d81b9a94402ce3979d531ae4f40ab6c06d9faecfce59a7da45b7944780bd">   43</a></span>&#160;    <a class="code" href="group___microcontroller.html#ggacdad6d81b9a94402ce3979d531ae4f40ab6c06d9faecfce59a7da45b7944780bd">NIRQ</a>=0</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;} <a class="code" href="group___microcontroller.html#gacdad6d81b9a94402ce3979d531ae4f40">InterruptTypes</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structt_analog_configuration.html">   45</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    U8 TriggerMode;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    U8 ConversionMode;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    U8 ChannelSelectionMode;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    U8 ConversionRate;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    U8 HardwareTrigger;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    U8 ReferenceSource;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    U8 LimitCheckMode;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    U8 SnoozeMode;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    U8 UpperLimit;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    U8 LowerLimit;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    U8 PowerMode;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;} <a class="code" href="structt_analog_configuration.html">tAnalogConfiguration</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    k9600,</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    k19200,</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    k38400,</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    k57600,</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    k76800,</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    k115200</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;} tBaudRates;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">// ADM0</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#define kEnableAnalogConversion 0x80</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#define kDisableAnalogConverstion 0x00</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#define kSelectAnalogChannel 0x00</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#define kScanAnalogChannel 0x40</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#define kEnableComparatorOperation 0x01</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#define kDisableComparatorOperation 0x00</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#define kConversionClockDiv64 0x00</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#define kConversionClockDiv32 0x08</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#define kConversionClockDiv16 0x10</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#define kConversionClockDiv8 0x18</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#define kConversionClockDiv6 0x20</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">#define kConversionClockDiv5 0x28</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#define kConversionClockDiv4 0x30</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#define kConversionClockDiv2 0x38</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#define kConversionModeNormal1 0x00</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#define kConversionModeNormal2 0x02</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#define kConversionModeLowVoltage1 0x04</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#define kConversionModeLowVoltage2 0x06</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment">// ADM1</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">#define kSoftwareTriggerMode 0x00</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#define kHardwareTriggerNoWaitMode 0x80</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">#define kHardwareTriggerWaitMode 0xc0</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#define kSequentialConversionMode 0x00</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">#define kOneShotConversionMode 0x20</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#define kHardwareTriggerTimer1 0x00</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#define kHardwareTriggerRTC 0x02</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#define kHardwareTriggerIntervalTimer 0x03</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment">// ADM2</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">#define kAnalogPositiveReferenceVdd 0x00</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">#define kAnalogPositiveReferenceP20 0x40</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">#define kAnalogPositiveReferenceInternal 0x80</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#define kAnalogNegativeReferenceVss 0x00</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">#define kAnalogNegativeReferenceP21 0x20</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">#define kAnalogOutsideWindowInterrupt 0x00</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#define kAnalogInsideWindowInterrupt 0x08</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#define kAnalogNoSnooze 0x00</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#define kAnalogSnooze 0x04</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#define kAnalog10BitResolution 0x00</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">#define kAnalog8BitResolution 0x01</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment">// ******************************************************************************************************************************</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">// *** Public API ***</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment"></span>U8 <a class="code" href="group___microcontroller.html#ga1ecc48640c88df2b39642c9db2156ac5">WriteCharSPIMultiple</a> ( U8 reg  ,</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                        U8 count ,</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                        U8* buffer ) reentrant;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga6958dfb440f4c2c544b042189fa9a923">InitializeMicroAPI</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;U8 <a class="code" href="group___microcontroller.html#gad7f37d8605b8b3ce2e6915c969f17247">ReadSPI</a>(U8 reg ) reentrant;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga05c606a8ee19a2a0a3159db10c8c1613">WriteCharSPI</a>(U8 reg , U8 data ) reentrant;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga714f5e00129cbba29e5399b7eb136e91">ReadCharUART0</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga6282a8d1fec8d0fe84c29bb08218f182">WriteCharUART0</a>(U8 charToWrite );</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;U8 <a class="code" href="group___microcontroller.html#gad7e3b87af0c8570f64f8150ad7c8a6bc">BufferCountUART0</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga1bef08bf4ac00662e5a33460f1fb9618">ReadCharUART1</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga7d93b4d9705e3ea33038d1e1b9fcabd2">WriteCharUART1</a>(U8 charToWrite);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga0c8847a207a1636e48bf003a8d77922a">BufferCountUART1</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;U8 <a class="code" href="group___microcontroller.html#gacdadf6ed11e793bf97a89abd838054c4">ReadCharIIC</a>(U8 address);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga9ac607ecbf47d914900ff7d88069f613">ReadMultipleIIC</a>(U8 count,</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        U8 address,</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        U8 *buffer);</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;U8 <a class="code" href="group___microcontroller.html#gad7d4c378b620b133c9353c685f914b69">WriteCharIIC</a>(U8 address,</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        U8 byteToWrite );</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga67a3c996a2c5866617f9c709b1e2dd14">WriteMultipleIIC</a>(U8 count ,</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        U8 address ,</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        U8 *buffer );</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gad2e91e237be0303ec20b34bba610b7a1">SetMainClockToSubOscillator</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gabcd6760025ce417c27bae09ec5ce05b0">InternalHSOscillatorOff</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga4a53914e7aeb57f366f9efa37c994f3b">InternalHSOscillatorOn</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gae8e304a04f464eb06b0de7f7e1f6d169">SubOscillatorOff</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga70ab3e7091c6842fc701fe8fbfcc6d12">SubOscillatorOn</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gab563c321a97f73c2ea3e58e98070d8b1">SetSubOscillatorMode</a>(U8 mode );</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gac702222a324c1bc10dde908eff6539fb">RealTimeClockOn</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gae74912b5daae519a520a39430dd69e35">RealTimeClockOff</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gaf9febbc28d4e53756d6f6a20f7c661c1">EnableRTC1HZ</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gaabb1277b87572789c7fc133990a7bd70">DisableRTC1HZ</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gab15d1cc5f12a3400a997aa116c25743e">SetRTCHourMode</a>(U8 mode );</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gaaa5a7e38f21ca2d71262092b7452b0b7">SetCPI</a>(U8 mode );</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga953aae93ab9f1d309dcb4c311f14cc3b">EnableRTCAlarm</a>(U8 enableInterrupt );</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga04981095e5c8daac61a50f7f41598d38">DisableRTCAlarm</a>();</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga701361fbb2019fda5c4a989774b370f6">HitWDT</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gae6798cd2dc433ef74b228024e5bbae73">AnanlogConversionOn</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga03e5404bb43e55ad409db907ddf5c9ed">AnalogConversionOff</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga690716d528c55c715ed41c3019a1d830">AnalogConversionStart</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga61e8657445c5417b2ea748ea9d23951f">AnalogConversionStop</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga1f1caa2c7c75fcb8cc784ad5d5f91213">AnalogConverterConfigure</a>(<a class="code" href="structt_analog_configuration.html">tAnalogConfiguration</a> config );</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;U16 <a class="code" href="group___microcontroller.html#ga016d48a817a469193e4a5d074cd6049d">AnalogGet10BitResult</a>();</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;U8 <a class="code" href="group___microcontroller.html#ga6f4ffd53d546addb7365664f940579e7">AnalogGet8BitResult</a>();</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gaeff56b2236997924270e55a62737929f">AnalogSetInputChannel</a>(U8 channel );</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gaf09eaf29e2cfb751d818319d9b5b18a3">StartIntervalTimer</a>();</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gac3d2bb900ac4f17b96848ae67d3e3648">StopIntervalTimer</a>();</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga4ce8f9d1d012d1ea3247861b9fcdef90">EnableSPI</a>();</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga8690a90f4c770d45ac919a547c3700d1">SetUART1BaudRate</a>(tBaudRates baudRate );</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gac5267f0d0e5626c6a93165fba4ddaa86">EnableIntP0</a>();</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga475375bc3c9f16d39d258c9e79814b6b">DisableIntP0</a>();</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#ga69997f6cfb87afa7b927b5cd08cd7c2c">UpdateRTC</a>(<a class="code" href="union_u_u32.html">UU32</a> timeStamp <span class="comment">/* Current time  in seconds*/</span>);</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;<span class="preprocessor">#define INITIALIZEDVALUE 0x55</span></div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;<span class="comment">// Disable interrupts</span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="preprocessor">#define DisableInterrupts DI();</span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="comment">// Enable interrupts</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="preprocessor">#define EnableInterrupts EI();</span></div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;<span class="comment">// Get the interrupt pin status for the radio</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;<span class="preprocessor">#define NIRQStatus IRQ</span></div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;<span class="comment">// Gets the status of the SDN pin</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;<span class="preprocessor">#define SDNPin SDN</span></div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;<span class="preprocessor">#define kAnalogTriggerSoftware 0x00</span></div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<span class="preprocessor">#define kAnalogTriggerHardwareNoWait 0x80</span></div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;<span class="preprocessor">#define kAnalogTriggerHardware 0xc0</span></div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;<span class="preprocessor">#define kAnalogConversionModeSequential 0x00</span></div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="preprocessor">#define kAnalogConversionModeOneShot 0x20</span></div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;<span class="preprocessor">#define kAnalogHardwareTriggerINTTM01 0x00</span></div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;<span class="preprocessor">#define kAnalogHardwareTriggerINTRTC 0x02</span></div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;<span class="preprocessor">#define kAnalogHardwareTriggerINTIT 0x03</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;<span class="preprocessor">#define kAnalogChannelSelectMode 0x00</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;<span class="preprocessor">#define kAnalogChannelScanMode 0x40</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;<span class="preprocessor">#define kAnalogPositiveReferenceVDD 0x00</span></div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;<span class="preprocessor">#define kAnalogPositiveReferenceP20 0x40</span></div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;<span class="preprocessor">#define kAnalogPositiveReferenceInternal 0x80</span></div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;<span class="preprocessor">#define kAnalogNegativeReferenceVSS 0x00</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;<span class="preprocessor">#define kAnalogNegativeReferenceP21 0x20</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="preprocessor">#define kAnalogLimitCheckInband 0x00</span></div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="preprocessor">#define kAnalogLimitCheckOutsideBand 0x08</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="preprocessor">#define kAnalogSnoozeEnabled 0x00</span></div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;<span class="preprocessor">#define kAnalogSnoozeDisabled 0x04</span></div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="preprocessor">#define kAnalogResolution10Bits 0x00</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="preprocessor">#define kAnalogResolution8Bits 0x01</span></div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___microcontroller.html#gafeb5010b09224954a59498ff459e19af">ResetRadio</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;<span class="comment">// This must be defined in the radioapi.  It will be called by the microapi when an interrupt happens that needs to be </span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="comment">// handled by the radioapi</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> HandleInterrupt(U8 intType);</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="comment">// This must be defined in radioapi.  It will be called once every millisecond by the Timer3 interrupt</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> Handle1MsInterrupt();</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;<span class="comment">// This must be defined in radioapi.  It will be called once every second by the RTC interrupt</span></div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> Handle1SecInterrupt();</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;<span class="comment">// ******************************************************************************************************************************</span></div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;<span class="preprocessor">#define KEY_WAITTIME                    (8U)      </span><span class="comment">/* Wait 250 */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<span class="preprocessor">#define pinRadioNSS P12_bit.no0</span></div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;<span class="preprocessor">#define pinRadioDIO0 P13_bit.no7</span></div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;<span class="preprocessor">#define pinRadioDIO1 P5_bit.no0</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;<span class="preprocessor">#define pinRadioDIO2 P5_bit.no1</span></div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="preprocessor">#define pinRadioDIO3 P3_bit.no0</span></div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;<span class="preprocessor">#define pinRadioDIO4 P3_bit.no1</span></div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;<span class="preprocessor">#define pinRadioDIO5 P1_bit.no6</span></div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;<span class="preprocessor">#define pinRadioReset P2_bit.no6</span></div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;<span class="preprocessor">#define SLEEP asm(&quot;stop&quot;)</span></div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;<span class="preprocessor">#define I2C_DAT P6_bit.no1</span></div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;<span class="preprocessor">#define I2C_CLOCK P6_bit.no0</span></div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="comment">// NOTE: Reset is not connected to the micrcontroller on the rfBrick</span></div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;<span class="comment">//#define RadioResetPin P2_bit.no6</span></div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;<span class="preprocessor">#define HIGH 1</span></div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;<span class="preprocessor">#define LOW 0</span></div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;<span class="comment">// these are globally defined to provide non-architecture specific code the ability to globally enable and disable interrupts</span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="comment">//#define EnableInterrupts EI()</span></div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="comment">//#define DisableInterrupts DI()</span></div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;</div>
<div class="ttc" id="group___microcontroller_html_ga05c606a8ee19a2a0a3159db10c8c1613"><div class="ttname"><a href="group___microcontroller.html#ga05c606a8ee19a2a0a3159db10c8c1613">WriteCharSPI</a></div><div class="ttdeci">U8 WriteCharSPI(U8 reg, U8 data) reentrant</div><div class="ttdef"><b>Definition:</b> microapi.c:522</div></div>
<div class="ttc" id="group___microcontroller_html_ga67a3c996a2c5866617f9c709b1e2dd14"><div class="ttname"><a href="group___microcontroller.html#ga67a3c996a2c5866617f9c709b1e2dd14">WriteMultipleIIC</a></div><div class="ttdeci">U8 WriteMultipleIIC(U8 count, U8 address, U8 *buffer)</div><div class="ttdef"><b>Definition:</b> microapi.c:866</div></div>
<div class="ttc" id="group___microcontroller_html_ga04981095e5c8daac61a50f7f41598d38"><div class="ttname"><a href="group___microcontroller.html#ga04981095e5c8daac61a50f7f41598d38">DisableRTCAlarm</a></div><div class="ttdeci">void DisableRTCAlarm()</div><div class="ttdef"><b>Definition:</b> microapi.c:1101</div></div>
<div class="ttc" id="group___microcontroller_html_gae74912b5daae519a520a39430dd69e35"><div class="ttname"><a href="group___microcontroller.html#gae74912b5daae519a520a39430dd69e35">RealTimeClockOff</a></div><div class="ttdeci">void RealTimeClockOff(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1068</div></div>
<div class="ttc" id="group___microcontroller_html_gae8e304a04f464eb06b0de7f7e1f6d169"><div class="ttname"><a href="group___microcontroller.html#gae8e304a04f464eb06b0de7f7e1f6d169">SubOscillatorOff</a></div><div class="ttdeci">void SubOscillatorOff(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1032</div></div>
<div class="ttc" id="group___microcontroller_html_ga70ab3e7091c6842fc701fe8fbfcc6d12"><div class="ttname"><a href="group___microcontroller.html#ga70ab3e7091c6842fc701fe8fbfcc6d12">SubOscillatorOn</a></div><div class="ttdeci">void SubOscillatorOn(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1036</div></div>
<div class="ttc" id="group___microcontroller_html_ga61e8657445c5417b2ea748ea9d23951f"><div class="ttname"><a href="group___microcontroller.html#ga61e8657445c5417b2ea748ea9d23951f">AnalogConversionStop</a></div><div class="ttdeci">void AnalogConversionStop(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:918</div></div>
<div class="ttc" id="group___microcontroller_html_gafeb5010b09224954a59498ff459e19af"><div class="ttname"><a href="group___microcontroller.html#gafeb5010b09224954a59498ff459e19af">ResetRadio</a></div><div class="ttdeci">void ResetRadio(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:974</div></div>
<div class="ttc" id="group___microcontroller_html_ga690716d528c55c715ed41c3019a1d830"><div class="ttname"><a href="group___microcontroller.html#ga690716d528c55c715ed41c3019a1d830">AnalogConversionStart</a></div><div class="ttdeci">void AnalogConversionStart(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:912</div></div>
<div class="ttc" id="group___microcontroller_html_ga8690a90f4c770d45ac919a547c3700d1"><div class="ttname"><a href="group___microcontroller.html#ga8690a90f4c770d45ac919a547c3700d1">SetUART1BaudRate</a></div><div class="ttdeci">void SetUART1BaudRate(tBaudRates baudRate)</div><div class="ttdef"><b>Definition:</b> microapi.c:330</div></div>
<div class="ttc" id="group___microcontroller_html_gacdad6d81b9a94402ce3979d531ae4f40"><div class="ttname"><a href="group___microcontroller.html#gacdad6d81b9a94402ce3979d531ae4f40">InterruptTypes</a></div><div class="ttdeci">InterruptTypes</div><div class="ttdef"><b>Definition:</b> microapi.h:41</div></div>
<div class="ttc" id="group___microcontroller_html_gad7f37d8605b8b3ce2e6915c969f17247"><div class="ttname"><a href="group___microcontroller.html#gad7f37d8605b8b3ce2e6915c969f17247">ReadSPI</a></div><div class="ttdeci">U8 ReadSPI(U8 reg) reentrant</div></div>
<div class="ttc" id="group___microcontroller_html_ggacdad6d81b9a94402ce3979d531ae4f40ab6c06d9faecfce59a7da45b7944780bd"><div class="ttname"><a href="group___microcontroller.html#ggacdad6d81b9a94402ce3979d531ae4f40ab6c06d9faecfce59a7da45b7944780bd">NIRQ</a></div><div class="ttdef"><b>Definition:</b> microapi.h:43</div></div>
<div class="ttc" id="group___microcontroller_html_gab563c321a97f73c2ea3e58e98070d8b1"><div class="ttname"><a href="group___microcontroller.html#gab563c321a97f73c2ea3e58e98070d8b1">SetSubOscillatorMode</a></div><div class="ttdeci">void SetSubOscillatorMode(U8 mode)</div><div class="ttdef"><b>Definition:</b> microapi.c:1040</div></div>
<div class="ttc" id="group___microcontroller_html_ga953aae93ab9f1d309dcb4c311f14cc3b"><div class="ttname"><a href="group___microcontroller.html#ga953aae93ab9f1d309dcb4c311f14cc3b">EnableRTCAlarm</a></div><div class="ttdeci">void EnableRTCAlarm(U8 enableInterrupt)</div><div class="ttdef"><b>Definition:</b> microapi.c:1096</div></div>
<div class="ttc" id="group___microcontroller_html_ga69997f6cfb87afa7b927b5cd08cd7c2c"><div class="ttname"><a href="group___microcontroller.html#ga69997f6cfb87afa7b927b5cd08cd7c2c">UpdateRTC</a></div><div class="ttdeci">void UpdateRTC(UU32 timeStamp)</div><div class="ttdef"><b>Definition:</b> microapi.c:988</div></div>
<div class="ttc" id="group___microcontroller_html_gaf9febbc28d4e53756d6f6a20f7c661c1"><div class="ttname"><a href="group___microcontroller.html#gaf9febbc28d4e53756d6f6a20f7c661c1">EnableRTC1HZ</a></div><div class="ttdeci">void EnableRTC1HZ(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1075</div></div>
<div class="ttc" id="group___microcontroller_html_gad7e3b87af0c8570f64f8150ad7c8a6bc"><div class="ttname"><a href="group___microcontroller.html#gad7e3b87af0c8570f64f8150ad7c8a6bc">BufferCountUART0</a></div><div class="ttdeci">U8 BufferCountUART0(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:629</div></div>
<div class="ttc" id="group___microcontroller_html_gad7d4c378b620b133c9353c685f914b69"><div class="ttname"><a href="group___microcontroller.html#gad7d4c378b620b133c9353c685f914b69">WriteCharIIC</a></div><div class="ttdeci">U8 WriteCharIIC(U8 address, U8 byteToWrite)</div><div class="ttdef"><b>Definition:</b> microapi.c:831</div></div>
<div class="ttc" id="group___microcontroller_html_gac702222a324c1bc10dde908eff6539fb"><div class="ttname"><a href="group___microcontroller.html#gac702222a324c1bc10dde908eff6539fb">RealTimeClockOn</a></div><div class="ttdeci">void RealTimeClockOn(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1061</div></div>
<div class="ttc" id="group___microcontroller_html_gabcd6760025ce417c27bae09ec5ce05b0"><div class="ttname"><a href="group___microcontroller.html#gabcd6760025ce417c27bae09ec5ce05b0">InternalHSOscillatorOff</a></div><div class="ttdeci">void InternalHSOscillatorOff(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1024</div></div>
<div class="ttc" id="group___microcontroller_html_gaabb1277b87572789c7fc133990a7bd70"><div class="ttname"><a href="group___microcontroller.html#gaabb1277b87572789c7fc133990a7bd70">DisableRTC1HZ</a></div><div class="ttdeci">void DisableRTC1HZ(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1079</div></div>
<div class="ttc" id="group___microcontroller_html_ga016d48a817a469193e4a5d074cd6049d"><div class="ttname"><a href="group___microcontroller.html#ga016d48a817a469193e4a5d074cd6049d">AnalogGet10BitResult</a></div><div class="ttdeci">U16 AnalogGet10BitResult()</div><div class="ttdef"><b>Definition:</b> microapi.c:933</div></div>
<div class="ttc" id="group___microcontroller_html_ga6f4ffd53d546addb7365664f940579e7"><div class="ttname"><a href="group___microcontroller.html#ga6f4ffd53d546addb7365664f940579e7">AnalogGet8BitResult</a></div><div class="ttdeci">U8 AnalogGet8BitResult()</div><div class="ttdef"><b>Definition:</b> microapi.c:949</div></div>
<div class="ttc" id="group___microcontroller_html_gab15d1cc5f12a3400a997aa116c25743e"><div class="ttname"><a href="group___microcontroller.html#gab15d1cc5f12a3400a997aa116c25743e">SetRTCHourMode</a></div><div class="ttdeci">void SetRTCHourMode(U8 mode)</div><div class="ttdef"><b>Definition:</b> microapi.c:1083</div></div>
<div class="ttc" id="group___microcontroller_html_gad2e91e237be0303ec20b34bba610b7a1"><div class="ttname"><a href="group___microcontroller.html#gad2e91e237be0303ec20b34bba610b7a1">SetMainClockToSubOscillator</a></div><div class="ttdeci">void SetMainClockToSubOscillator(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1020</div></div>
<div class="ttc" id="group___microcontroller_html_ga9ac607ecbf47d914900ff7d88069f613"><div class="ttname"><a href="group___microcontroller.html#ga9ac607ecbf47d914900ff7d88069f613">ReadMultipleIIC</a></div><div class="ttdeci">U8 ReadMultipleIIC(U8 count, U8 address, U8 *buffer)</div><div class="ttdef"><b>Definition:</b> microapi.c:789</div></div>
<div class="ttc" id="group___microcontroller_html_ga701361fbb2019fda5c4a989774b370f6"><div class="ttname"><a href="group___microcontroller.html#ga701361fbb2019fda5c4a989774b370f6">HitWDT</a></div><div class="ttdeci">void HitWDT(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1106</div></div>
<div class="ttc" id="group___microcontroller_html_gaeff56b2236997924270e55a62737929f"><div class="ttname"><a href="group___microcontroller.html#gaeff56b2236997924270e55a62737929f">AnalogSetInputChannel</a></div><div class="ttdeci">void AnalogSetInputChannel(U8 channel)</div><div class="ttdef"><b>Definition:</b> microapi.c:954</div></div>
<div class="ttc" id="group___microcontroller_html_ga6958dfb440f4c2c544b042189fa9a923"><div class="ttname"><a href="group___microcontroller.html#ga6958dfb440f4c2c544b042189fa9a923">InitializeMicroAPI</a></div><div class="ttdeci">U8 InitializeMicroAPI(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:423</div></div>
<div class="ttc" id="group___microcontroller_html_ga4a53914e7aeb57f366f9efa37c994f3b"><div class="ttname"><a href="group___microcontroller.html#ga4a53914e7aeb57f366f9efa37c994f3b">InternalHSOscillatorOn</a></div><div class="ttdeci">void InternalHSOscillatorOn(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:1028</div></div>
<div class="ttc" id="group___microcontroller_html_ga4ce8f9d1d012d1ea3247861b9fcdef90"><div class="ttname"><a href="group___microcontroller.html#ga4ce8f9d1d012d1ea3247861b9fcdef90">EnableSPI</a></div><div class="ttdeci">void EnableSPI()</div><div class="ttdef"><b>Definition:</b> microapi.c:177</div></div>
<div class="ttc" id="group___microcontroller_html_ga7d93b4d9705e3ea33038d1e1b9fcabd2"><div class="ttname"><a href="group___microcontroller.html#ga7d93b4d9705e3ea33038d1e1b9fcabd2">WriteCharUART1</a></div><div class="ttdeci">void WriteCharUART1(U8 charToWrite)</div><div class="ttdef"><b>Definition:</b> microapi.c:695</div></div>
<div class="ttc" id="group___microcontroller_html_ga1f1caa2c7c75fcb8cc784ad5d5f91213"><div class="ttname"><a href="group___microcontroller.html#ga1f1caa2c7c75fcb8cc784ad5d5f91213">AnalogConverterConfigure</a></div><div class="ttdeci">void AnalogConverterConfigure(tAnalogConfiguration config)</div><div class="ttdef"><b>Definition:</b> microapi.c:924</div></div>
<div class="ttc" id="group___microcontroller_html_ga6282a8d1fec8d0fe84c29bb08218f182"><div class="ttname"><a href="group___microcontroller.html#ga6282a8d1fec8d0fe84c29bb08218f182">WriteCharUART0</a></div><div class="ttdeci">void WriteCharUART0(U8 charToWrite)</div><div class="ttdef"><b>Definition:</b> microapi.c:620</div></div>
<div class="ttc" id="group___microcontroller_html_ga03e5404bb43e55ad409db907ddf5c9ed"><div class="ttname"><a href="group___microcontroller.html#ga03e5404bb43e55ad409db907ddf5c9ed">AnalogConversionOff</a></div><div class="ttdeci">void AnalogConversionOff(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:908</div></div>
<div class="ttc" id="group___microcontroller_html_gaf09eaf29e2cfb751d818319d9b5b18a3"><div class="ttname"><a href="group___microcontroller.html#gaf09eaf29e2cfb751d818319d9b5b18a3">StartIntervalTimer</a></div><div class="ttdeci">void StartIntervalTimer()</div><div class="ttdef"><b>Definition:</b> microapi.c:958</div></div>
<div class="ttc" id="group___microcontroller_html_gac3d2bb900ac4f17b96848ae67d3e3648"><div class="ttname"><a href="group___microcontroller.html#gac3d2bb900ac4f17b96848ae67d3e3648">StopIntervalTimer</a></div><div class="ttdeci">void StopIntervalTimer()</div><div class="ttdef"><b>Definition:</b> microapi.c:966</div></div>
<div class="ttc" id="group___microcontroller_html_ga475375bc3c9f16d39d258c9e79814b6b"><div class="ttname"><a href="group___microcontroller.html#ga475375bc3c9f16d39d258c9e79814b6b">DisableIntP0</a></div><div class="ttdeci">void DisableIntP0()</div><div class="ttdef"><b>Definition:</b> microapi.c:1175</div></div>
<div class="ttc" id="group___microcontroller_html_ga714f5e00129cbba29e5399b7eb136e91"><div class="ttname"><a href="group___microcontroller.html#ga714f5e00129cbba29e5399b7eb136e91">ReadCharUART0</a></div><div class="ttdeci">U8 ReadCharUART0(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:606</div></div>
<div class="ttc" id="group___microcontroller_html_ga1ecc48640c88df2b39642c9db2156ac5"><div class="ttname"><a href="group___microcontroller.html#ga1ecc48640c88df2b39642c9db2156ac5">WriteCharSPIMultiple</a></div><div class="ttdeci">U8 WriteCharSPIMultiple(U8 reg, U8 count, U8 *buffer) reentrant</div><div class="ttdef"><b>Definition:</b> microapi.c:551</div></div>
<div class="ttc" id="group___microcontroller_html_ga1bef08bf4ac00662e5a33460f1fb9618"><div class="ttname"><a href="group___microcontroller.html#ga1bef08bf4ac00662e5a33460f1fb9618">ReadCharUART1</a></div><div class="ttdeci">U8 ReadCharUART1(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:679</div></div>
<div class="ttc" id="group___microcontroller_html_gac5267f0d0e5626c6a93165fba4ddaa86"><div class="ttname"><a href="group___microcontroller.html#gac5267f0d0e5626c6a93165fba4ddaa86">EnableIntP0</a></div><div class="ttdeci">void EnableIntP0()</div><div class="ttdef"><b>Definition:</b> microapi.c:1171</div></div>
<div class="ttc" id="group___microcontroller_html_ga0c8847a207a1636e48bf003a8d77922a"><div class="ttname"><a href="group___microcontroller.html#ga0c8847a207a1636e48bf003a8d77922a">BufferCountUART1</a></div><div class="ttdeci">U8 BufferCountUART1(void)</div><div class="ttdef"><b>Definition:</b> microapi.c:711</div></div>
<div class="ttc" id="union_u_u32_html"><div class="ttname"><a href="union_u_u32.html">UU32</a></div><div class="ttdef"><b>Definition:</b> TypeDefinitions.h:62</div></div>
<div class="ttc" id="group___microcontroller_html_gae6798cd2dc433ef74b228024e5bbae73"><div class="ttname"><a href="group___microcontroller.html#gae6798cd2dc433ef74b228024e5bbae73">AnanlogConversionOn</a></div><div class="ttdeci">void AnanlogConversionOn(void)</div></div>
<div class="ttc" id="group___microcontroller_html_gaaa5a7e38f21ca2d71262092b7452b0b7"><div class="ttname"><a href="group___microcontroller.html#gaaa5a7e38f21ca2d71262092b7452b0b7">SetCPI</a></div><div class="ttdeci">void SetCPI(U8 mode)</div><div class="ttdef"><b>Definition:</b> microapi.c:1087</div></div>
<div class="ttc" id="structt_analog_configuration_html"><div class="ttname"><a href="structt_analog_configuration.html">tAnalogConfiguration</a></div><div class="ttdef"><b>Definition:</b> microapi.h:45</div></div>
<div class="ttc" id="group___microcontroller_html_gacdadf6ed11e793bf97a89abd838054c4"><div class="ttname"><a href="group___microcontroller.html#gacdadf6ed11e793bf97a89abd838054c4">ReadCharIIC</a></div><div class="ttdeci">U8 ReadCharIIC(U8 address)</div><div class="ttdef"><b>Definition:</b> microapi.c:754</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Sep 20 2014 15:04:07 for OpenRF by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
